from django.db import models
from django.forms import ModelForm
from django import forms
# Create your models here.
    
class BetModel(models.Model):
    title = models.CharField(max_length=30)
    description = models.CharField(max_length=100)
    price =  models.IntegerField()
    active = models.BooleanField()
    win = models.BooleanField()
    amount = models.IntegerField()
    expired = models.DateTimeField()
    outcome_set = models.BooleanField(default=False)
    
class BetModelForm(ModelForm):
    daily = forms.BooleanField(required=False)
    class Meta:
        model = BetModel  
        exclude = ('active','win','expired') 
    
                  
                
        
